<template>
  <div class="home" style="width: 1200px; margin: 0 auto">
    <TheHeader></TheHeader>
    <!--     <div style="margin-bottom: 20px;">
      <home-banner></home-banner>
    </div> -->
    <div style="margin-bottom: 20px" v-if="this.$route.params.isHeader">
      <router-view />
    </div>
    <div
      style="display: flex"
      class="credit-index-main"
      v-if="!this.$route.params.isHeader"
    >
      <TheLeft></TheLeft>
      <router-view />
    </div>
    <TheBottom style="padding-bottom: 20px;"></TheBottom>
  </div>
</template>

<script>
// @ is an alias to /src
import TheHeader from "@/components/TheHeader.vue";
import TheBottom from "@/components/TheBottom.vue";
import TheLeft from "@/components/TheLeft.vue";

export default {
  name: "home",
  components: {
    TheHeader,
    TheBottom,
    TheLeft
  },
  created() {
    this.$route.params.isHeader = true;
    window.sa.track("$pageview", {
      $url_path: "index"
    });
  }
};
</script>
<style scoped>
.credit-index-main {
  justify-content: space-around;
  margin-bottom: 10px;
}
</style>
